home *** CD-ROM | disk | FTP | other *** search
- // wsotst2.cpp: This program displays multiple pop-up windows
-
- #include "wsotxscr.h"
-
- Wso *Window1, *Window2, *Window3;
-
- main()
- {
- Setup(MouseOptional,CyanColors); // Setup the environment
- FullScrn->Panel->Clear('\xb0',0); // Clear the full screen
- // Create the first window
- Window1 = new Wso(0x11, WindowStyle+Stretchable, RedColors);
- Window1->SetSize(50, 15);
- Window1->Open(FullScrn, 2, 2); // Assign the window to the screen
- Window1->Panel->HzWrtB(0,0, "Window 1");
- // Create the second window
- Window2 = new Wso(0x11, WindowStyle+Stretchable, BlueColors);
- Window2->SetSize(20, 8);
- Window2->Open(Window1, 2, 3); // Assign the window to window 1
- Window2->Panel->HzWrtB(0,0, "Window 2");
- Window3 = new Wso(0x11, WindowStyle+Stretchable, InvColors);
- Window3->SetSize(20, 10);
- Window3->Open(FullScrn, 50, 5); // Assign the window to the screen
- Window3->Panel->HzWrtB(0,0, "Window 3");
- MainEventLoop(); // The event loop takes over
- CleanUp(); // Remove all the objects
- }
-